package com.ssh.demo.main.common.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ssh.demo.base.service.impl.BaseServiceImpl;
import com.ssh.demo.main.common.bean.TestBean;
import com.ssh.demo.main.common.dao.TestDao;
import com.ssh.demo.main.common.service.TestService;

@Service("testService")
@Transactional
public class TestServiceImpl extends BaseServiceImpl<TestBean, Serializable> implements TestService {

	public TestServiceImpl() {

	}

	@Resource
	private TestDao testDao;

	public void saveOrUpdate(TestBean t) {
		testDao.saveOrUpdate(t);
	}

	public void del(Serializable pk) {
		testDao.del(pk);
	}

	public void del(TestBean t) {
		testDao.del(t);
	}

	public TestBean findById(Serializable pk) {
		return testDao.findById(pk);
	}

	public List<TestBean> findAll() {
		return testDao.findAll();
	}

	public List<TestBean> findByPage(int start, int count) {
		return testDao.findByPage(start, count);
	}
}
